[6.0] Move the JPATH_PLATFORM constant to the compat plugin#44638
[6.0] Move the JPATH_PLATFORM constant to the compat plugin#44638Bodge-IT merged 10 commits intojoomla:6.0-devfrom
Conversation
|
I have tested this item ✅ successfully on b7edaa5 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44638. |
|
I have tested this item 🔴 unsuccessfully on 95b56ba This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44638. |
|
@Bodge-IT This has been fixed in PatchTester pending a new release. joomla-extensions/patchtester@07c2890 |
proof that we're not ready for this pointless change |
|
I have tested this item ✅ successfully on 95b56ba This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44638. |
|
I have tested this item ✅ successfully on ecc5f35 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44638. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44638. |
|
I'v moved the constant to the compat plugin. @Bodge-IT can you test the patch tester with the old code if it still works? |
|
I have tested this item ✅ successfully on d30e272 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44638. |
considered changes from prs: joomla#44926 joomla#44240 joomla#44638 joomla#44700 joomla#43209 joomla#43958 joomla#42884
* Create backward compatibility 6 plugin * Moved relevant code from old compat plugin and removed it considered changes from prs: #44926 #44240 #44638 #44700 #43209 #43958 #42884 * Add new plugin on install and uninstall old plugin * Remove compat media folder, add compat6 removed.asset.json * Fix cs exceptions * Update ExtensionHelper * Rename Compat.php to Compat6.php * Disable compat6 plugin for system tests * Restore class aliases from compat 5 plugin * Relocate files from #44925 --------- Co-authored-by: Richard Fath <richard67@users.noreply.github.com> Co-authored-by: Brian Teeman <brian@teeman.net>
* Create backward compatibility 6 plugin * Moved relevant code from old compat plugin and removed it considered changes from prs: #44926 #44240 #44638 #44700 #43209 #43958 #42884 * Add new plugin on install and uninstall old plugin * Remove compat media folder, add compat6 removed.asset.json * Fix cs exceptions * Update ExtensionHelper * Rename Compat.php to Compat6.php * Disable compat6 plugin for system tests * Update administrator/language/en-GB/plg_behaviour_compat6.ini Co-authored-by: Brian Teeman <brian@teeman.net> * Update plugins/behaviour/compat6/compat6.xml Co-authored-by: Brian Teeman <brian@teeman.net> * Update plugins/behaviour/compat6/compat6.xml Co-authored-by: Brian Teeman <brian@teeman.net> * Update administrator/language/en-GB/plg_behaviour_compat6.ini Co-authored-by: Brian Teeman <brian@teeman.net> * Update administrator/language/en-GB/plg_behaviour_compat6.sys.ini Co-authored-by: Brian Teeman <brian@teeman.net> * Update plugins/behaviour/compat6/src/Extension/Compat6.php * Restore class aliases from compat 5 plugin * Relocate files from #44925 * Apply language string improvement from review suggestion Co-authored-by: Brian Teeman <brian@teeman.net> * Update plugins/behaviour/compat6/src/Extension/Compat6.php Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com> * Update plugins/behaviour/compat6/compat6.xml Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com> * Update installation/sql/mysql/base.sql Co-authored-by: Richard Fath <richard67@users.noreply.github.com> * Update installation/sql/postgresql/base.sql Co-authored-by: Richard Fath <richard67@users.noreply.github.com> * Fix wrong folder in uninstallation of compat (5) plugin. --------- Co-authored-by: Richard Fath <richard67@users.noreply.github.com> Co-authored-by: Richard Fath <richard.fath@t-online.de> Co-authored-by: Brian Teeman <brian@teeman.net> Co-authored-by: Benjamin Trenkle <bembelimen@users.noreply.github.com> Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
Summary of Changes
The
JPATH_PLATFORMis not used anymore in the core. This pr moves the definition of it to the compatibility plugin. Extensions should check if_JEXECexists instead.Code review.
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org: Move the JPATH_PLATFORM constant to the compat plugin Manual#348
No documentation changes for manual.joomla.org needed